package com.dx.controller;

import com.dx.mapper.FeedbackMapper;
import com.dx.pojo.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/feedback")
@RestController
public class FeedbackController {

    @Autowired
    FeedbackMapper feedbackMapper;

    @RequestMapping("/putFeedback")
    public String putFeedback(Feedback feedback){
        feedbackMapper.putFeedback(feedback);
        return "ok";
    }
}
